package com.fan.teamer.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

import org.apache.log4j.Logger;

import com.fan.teamer.service.MemberService;


@ManagedBean(name = "userProfileBean")
@RequestScoped
public class UserProfileBean extends TeamerBean {

	private static Logger logger = Logger.getLogger(UserProfileBean.class);
	
	private String memberEmail;
	private int teamId;
	
	@ManagedProperty(value = "#{memberService}")
	private MemberService memberService;
	
	
	

	public UserProfileBean() {
		super();
		// TODO Auto-generated constructor stub
		
		
		logger.info(memberEmail);
	}

	public static Logger getLogger() {
		return logger;
	}

	public static void setLogger(Logger logger) {
		UserProfileBean.logger = logger;
	}

	public String getMemberEmail() {
		return memberEmail;
	}

	public void setMemberEmail(String memberEmail) {
		this.memberEmail = memberEmail;
	}

	public int getTeamId() {
		return teamId;
	}

	public void setTeamId(int teamId) {
		this.teamId = teamId;
	}

	public MemberService getMemberService() {
		return memberService;
	}

	public void setMemberService(MemberService memberService) {
		this.memberService = memberService;
	}
	
	
	public String gotoEditMemberProfilePage()
	{
		return "edit_team_member.faces";
	}
	
}
